/*
 * 文件名称: NewsDao.java
 * 版权信息: Copyright 2001-2012 ZheJiang Collaboration Data System Co., LTD. All right reserved.
 * ----------------------------------------------------------------------------------------------
 * 修改历史:
 * ----------------------------------------------------------------------------------------------
 * 修改原因: 新增
 * 修改人员: huangwb
 * 修改日期: Mar 11, 2012
 * 修改内容: 
 */
package com.sxkj.cyezj.dao;

import java.util.List;

import com.sxkj.cyezj.pojo.News;
/**
 * Dao
 * 
 * @author <a href="mailto:huangwb@zjcds.com">huangwb</a> created on Mar 11, 2012
 * @since 
 */
public interface NewsDao {
	/**
     * 插入
     * @param news
     * @author huangwb created on Mar 11, 2012 
     * @since
     */
	public void insertNews(News news);
	/**
     * 删除
     * @param id
     * @author huangwb created on Mar 11, 2012
     * @since
     */
	public void deleteNewsById(String nId);
	/**
     * 更新
     * @param news
     * @author huangwb created on Mar 11, 2012 
     * @since
     */
	public void updateNews(News news);
	/**
     * 更新
     * @param news
     * @author huangwb created on Mar 11, 2012 
     * @since
     */
	public void updateNewsDate(News news);
	/**
     * 更新
     * @param news
     * @author huangwb created on Mar 11, 2012 
     * @since
     */
	public void updateNewsValid(News news);
	/**
     * 更新
     * @param news
     * @author huangwb created on Mar 11, 2012 
     * @since
     */
	public void updateNewsListValid(List<News> list);
	/**
     * 更新
     * @param news
     * @author huangwb created on Mar 11, 2012 
     * @since
     */
	public void updateNewsListInValid(List<News> list);
	/**
     * 查询
     * @param nId
     * @author huangwb created on Mar 11, 2012
     * @since
     */
	public News getNews(String nId);
	/**
     * 查询
     * @param nId
     * @author huangwb created on Mar 11, 2012
     * @since
     */
	public List<News> getNewsByModuleId(String mId);
}